package org.ecshop.models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@NamedQueries({
	@NamedQuery(name = "findGoodsDescById", query = "from GoodsDesc as gd where gd.goodsId = ?")
})
/**
 * Goods entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ecs_goods")
public class GoodsDesc implements java.io.Serializable {

	// Fields

	private Integer goodsId;
	private String desc;

	// Constructors

	/** default constructor */
	public GoodsDesc() {
	}

	/** minimal constructor */
	public GoodsDesc(String desc) {
	}


	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "goods_id", unique = true, nullable = false)
	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "goods_desc")
	public String getDesc() {
		return this.desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}